package com.zy.ioc.pro5_ioc_import;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @program: mavenTest153
 * @description:
 * @author: zy
 * @create: 2025-07-13 08:53
 */
public class AppConfig_2_Test {
    public static void main(String[] args) {
        ApplicationContext ac=new AnnotationConfigApplicationContext(   AppConfig_2.class);

        String[] names= ac.getBeanDefinitionNames();
        for( String n:names){
            System.out.println(  n );
        }

//        AppConfig_2   a= (AppConfig_2) ac.getBean("appConfig_2");
//        System.out.println(   a );    // com.yc.ioc.bean5_ioc_import.AppConfig_2@2002fc1d
//        // com.yc.ioc.bean5_ioc_import.AppConfig_2$$EnhancerBySpringCGLIB$$58191cee@bae7dc0
    }
}
